package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.sql.Date;
import java.util.Objects;

@Entity
@Table(name = "devt_api_sub")
public class DevtApiSubEntity {
    private String id;
    private String bz;
    private Integer cacheflag;
    private Boolean cancel;
    private Date created;
    private Integer datalx;
    private String dm;
    private Date edittime;
    private String formid;
    private Integer isprocedure;
    private Integer lx;
    private String lxlabel;
    private String mainid;
    private Integer maxcachetime;
    private String mc;
    private String sql;
    private String sqltype;
    private Integer xh;
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "bz", nullable = true, length = 2147483647)
    public String getBz() {
        return bz;
    }
    
    public void setBz(String bz) {
        this.bz = bz;
    }
    
    @Basic
    @Column(name = "cacheflag", nullable = true)
    public Integer getCacheflag() {
        return cacheflag;
    }
    
    public void setCacheflag(Integer cacheflag) {
        this.cacheflag = cacheflag;
    }
    
    @Basic
    @Column(name = "cancel", nullable = true)
    public Boolean getCancel() {
        return cancel;
    }
    
    public void setCancel(Boolean cancel) {
        this.cancel = cancel;
    }
    
    @Basic
    @Column(name = "created", nullable = true)
    public Date getCreated() {
        return created;
    }
    
    public void setCreated(Date created) {
        this.created = created;
    }
    
    @Basic
    @Column(name = "datalx", nullable = true)
    public Integer getDatalx() {
        return datalx;
    }
    
    public void setDatalx(Integer datalx) {
        this.datalx = datalx;
    }
    
    @Basic
    @Column(name = "dm", nullable = true, length = 255)
    public String getDm() {
        return dm;
    }
    
    public void setDm(String dm) {
        this.dm = dm;
    }
    
    @Basic
    @Column(name = "edittime", nullable = true)
    public Date getEdittime() {
        return edittime;
    }
    
    public void setEdittime(Date edittime) {
        this.edittime = edittime;
    }
    
    @Basic
    @Column(name = "formid", nullable = true, length = 255)
    public String getFormid() {
        return formid;
    }
    
    public void setFormid(String formid) {
        this.formid = formid;
    }
    
    @Basic
    @Column(name = "isprocedure", nullable = true)
    public Integer getIsprocedure() {
        return isprocedure;
    }
    
    public void setIsprocedure(Integer isprocedure) {
        this.isprocedure = isprocedure;
    }
    
    @Basic
    @Column(name = "lx", nullable = true)
    public Integer getLx() {
        return lx;
    }
    
    public void setLx(Integer lx) {
        this.lx = lx;
    }
    
    @Basic
    @Column(name = "lxlabel", nullable = true, length = 255)
    public String getLxlabel() {
        return lxlabel;
    }
    
    public void setLxlabel(String lxlabel) {
        this.lxlabel = lxlabel;
    }
    
    @Basic
    @Column(name = "mainid", nullable = true, length = 255)
    public String getMainid() {
        return mainid;
    }
    
    public void setMainid(String mainid) {
        this.mainid = mainid;
    }
    
    @Basic
    @Column(name = "maxcachetime", nullable = true)
    public Integer getMaxcachetime() {
        return maxcachetime;
    }
    
    public void setMaxcachetime(Integer maxcachetime) {
        this.maxcachetime = maxcachetime;
    }
    
    @Basic
    @Column(name = "mc", nullable = true, length = 255)
    public String getMc() {
        return mc;
    }
    
    public void setMc(String mc) {
        this.mc = mc;
    }
    
    @Basic
    @Column(name = "sql_", nullable = true, length = 2147483647)
    public String getSql() {
        return sql;
    }
    
    public void setSql(String sql) {
        this.sql = sql;
    }
    
    @Basic
    @Column(name = "sqltype", nullable = true, length = 255)
    public String getSqltype() {
        return sqltype;
    }
    
    public void setSqltype(String sqltype) {
        this.sqltype = sqltype;
    }
    
    @Basic
    @Column(name = "xh", nullable = true)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtApiSubEntity that = (DevtApiSubEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(bz, that.bz) && Objects.equals(cacheflag, that.cacheflag) && Objects.equals(cancel, that.cancel) && Objects.equals(created, that.created) && Objects.equals(datalx, that.datalx) && Objects.equals(dm, that.dm) && Objects.equals(edittime, that.edittime) && Objects.equals(formid, that.formid) && Objects.equals(isprocedure, that.isprocedure) && Objects.equals(lx, that.lx) && Objects.equals(lxlabel, that.lxlabel) && Objects.equals(mainid, that.mainid) && Objects.equals(maxcachetime, that.maxcachetime) && Objects.equals(mc, that.mc) && Objects.equals(sql, that.sql) && Objects.equals(sqltype, that.sqltype) && Objects.equals(xh, that.xh);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, bz, cacheflag, cancel, created, datalx, dm, edittime, formid, isprocedure, lx, lxlabel, mainid, maxcachetime, mc, sql, sqltype, xh);
    }
}
